﻿using Core.DataAccess.Model;
using Core.DataAccess.Model.iTool.Gateway;
using HandlerContextOptions;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Environment.Interfaces
{
    public interface IApiGateway
    {
        Task<GatewayRoute> AddRoute(GatewayRoutesOptions options);
        Task<GatewayRoute> EditRoute(int id, GatewayRoutesOptions options);
        Task<bool> RemoveRoute(int id);
        Task<bool> AddOrUpdateGlobalConfig(GatewayGlobalOption options);

        Task<List<GatewayRoute>> GetRoutes(Pagination pagination);
        Task<GatewayRoute> GetGlobalConfig();
    }
}
